Task #1015

Memory 16 MB Time 1000 ms Complexity 20 %
14

  

Interesting problem #1

Sizga N soni beriladi. 1 dan N2 gacha bo'lgan sonlarni testlarda ko'rsatilganidek chop etishingiz so'raladi !


Input:

Bir qatorda N soni beriladi (1 ≤ N ≤ 500)


Output:

Masala javobini chop eting!


Examples
# input.txt output.txt
1
4
2 1 16 15 
3 4 13 14 
6 5 12 11 
7 8 9 10
2
5
1 2 3 24 25 
6 5 4 23 22 
7 8 9 20 21 
12 11 10 19 18 
13 14 15 16 17
3
6
3 2 1 36 35 34 
4 5 6 31 32 33 
9 8 7 30 29 28 
10 11 12 25 26 27 
15 14 13 24 23 22 
16 17 18 19 20 21
Note:

Eslatma!: Testlarda N ning toq va juft bo'lgandagi tartib holatlari berilgan. Yaxshilab e'tibor bering!

Submit answer
Please, sing in, to complete this action, if you don't have account, you can sign up any moment